<div class='fui-page  fui-page-current'>
    <div class="jy2-headertopbg">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">优惠券核销</div>
			</div>
	</div>
    <div class="fui-content coupon-page jy2-headertop">
		<div class="coupon-detail {{pagedata.coupon.color}}">
			<div class="detail-dots"></div>
			<div class="detail-head" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">
				<div class="inner">
					<div class="title">
						<div class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">{{pagedata.coupon.title}}</div>
					</div>
					
					<div ng-if="pagedata.coupon.backtype==2" class="childs">
						<div class="child">
							<div class="subtitle"> {{pagedata.coupon.title2}}</div>
							<div class="bigtitle">立返</div>
						</div>
						<div class="child">
							
							<div ng-if="pagedata.coupon.backmoney>0" class="subtitle"><span class="bold">{{pagedata.coupon.backmoney}} </span><span class="threetitle">元余额</span></div>
							
							
							<div ng-if="pagedata.coupon.backcredit>0" class="subtitle"><span class="bold">{{pagedata.coupon.backcredit}} </span><span class="threetitle">积分</span></div>
							
							
							<div ng-if="pagedata.coupon.backredpack>0" class="subtitle"><span class="bold">{{pagedata.coupon.backredpack}} </span><span class="threetitle">元红包</span></div>
							
						</div>
					</div>
					
					<div ng-if="pagedata.coupon.backtype!=2" class="bigtitle"> {{pagedata.coupon.title3}}</div>
					<div ng-if="pagedata.coupon.backtype!=2" class="subtitle"> {{pagedata.coupon.title2}}</div>
				
					<div class="usetime">
						<div class="">
						<div ng-if="pagedata.coupon.timelimittype==0" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:
							永久有效
						</div>
						<div ng-if="pagedata.coupon.timelimittype==1" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:
							领取后 {{pagedata.coupon.timedays}} 天内有效
						</div>
						<div ng-if="pagedata.coupon.timelimittype==2" class="text" style="{{pagedata.coupon.settagtitlecolor==1?'background:'+pagedata.coupon.titlecolor:''}}">有效期:
							{{pagedata.coupon.limittimes.tend}}
						</div>	
						</div>
					</div>
				</div>
			</div>
			<div class="detail-body">
				<div class="block">
				
					<div ng-if="pagedata.coupon.merchid!=0" class="title">使用商铺</div>
					
					<div class="text" ng-if="pagedata.coupon.merchid!=0" >
						限购[{{pagedata.coupon.merchname || '无'}}]店铺商品 
						  <span ng-click="access_json('jy_merch/myshop//id='+pagedata.coupon.merchid)" class="label label-info">前往店铺</span>
					</div>	
					
					<div class="title">使用说明</div>
					<div class="text">
						<div ng-if="pagedata.coupon.isdescsys==1">
							
							<div ng-if="pagedata.coupon.coupontype==2">
								{{pagedata.setting.buydesc}}
							</div>
							<div ng-if="pagedata.coupon.coupontype==1">
								{{pagedata.setting.rechargedesc}}
							</div>
						</div>
						<div ng-if="pagedata.coupon.isdescsys==0">
						
							{{pagedata.coupon.desc}}
						</div>
					</div>
				</div>
				<div class="block">
					<div class="title">有效期限</div>
					<div class="text">
						<div ng-if="pagedata.coupon.timelimittype==0" class="text">有效期:
							永久有效
						</div>
						<div ng-if="pagedata.coupon.timelimittype==1" class="text">有效期:
							领取后 {{pagedata.coupon.timedays}} 天内有效</br>
							{{pagedata.coupon.time}}
						</div>
						<div ng-if="pagedata.coupon.timelimittype==2" class="text">
							{{pagedata.coupon.limittimes.tstart}}~{{pagedata.coupon.limittimes.tend}}
						</div>
						<div  ng-if="pagedata.coupon.merchid!=0" >
						限购[{{pagedata.coupon.merchname}}]店铺商品
						</div>
					</div>
				</div>
				<div class="block">
					<div class="title">使用限制</div>
						<div ng-if="pagedata.coupon.limitusetype==1" class="text">不允许与促销优惠同时使用</div>
					
						<div ng-if="pagedata.coupon.limitusetype==2" class="text">不允许与会员折扣同时使用</div>
				
						<div ng-if="pagedata.coupon.limitusetype==3" class="text">不允许与促销优惠和会员折扣同时使用</div>
						<div ng-if="pagedata.coupon.limitgoodtype==1" class="text">允许以下商品使用:</div>
						<div ng-if="pagedata.coupon.limitgoodtype==1">
							<span ng-repeat="item in pagedata.goods" class="jylabel jylabel-red" style="margin:0.1rem;line-height:2">{{item.title}}</span>
						</div>
						<div  ng-if="pagedata.coupon.limitgoodcatetype==1"  class="text">允许以下商品分类使用:</div>
						<div>
							<span ng-repeat="item in pagedata.group" class="jylabel jylabel-red" style="margin:0.1rem;line-height:2">{{item.title}}</span>
						  </div>
						<div ng-if="pagedata.coupon.limitgoodtype==0 && pagedata.coupon.limitgoodcatetype==0 &&  pagedata.coupon.limitusetype==0 &&  pagedata.coupon.coupontype!=2" class="text">无</div>
				</div>
			</div>
		</div>
	</div>
    <div class="fui-footer postbtn" href="javascript:;" ng-click="post(pagedata.post,'jy_weishop/coupon.hexiao/post/')">
	    <i class="icon jinyunicon icon-check"></i> 
	    <span>确定核销</span>
    </div>
</div>